﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEARNREN.COM.Entity;

namespace LEARNREN.COM.UI.Template
{
    public class ShowProjectTemplate:HtmlTemplate
    {
        Project projectEntity = null;
        public ShowProjectTemplate(string tmpFile, long projectId)
            : base(tmpFile)
        {
            projectEntity = this.groupLogicFactory.ProjectLogic.GetById(projectId);
        }

        protected override void SetContextData()
        {
            base.SetContextData();
            this.context.State = projectEntity;
            this.context.CatalogueID = projectEntity.CatalogueId;
        }
    }
}
